package com.heima.leadnews.artlite.job;

import com.heima.leadnews.artlite.service.ApArticleConfigService;
import com.heima.leadnews.artlite.service.ApArticleService;
import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class HotArticJob {

    @Autowired
    private ApArticleService apArticleService;
    @XxlJob("houA")
    public void HotArtic() throws Exception {
    apArticleService.saveHotArticle();
    }
}
